//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u


//用户端
// 获取滚动图数据
export const getBanner = params => http.get('/app-api/mini/banner/list', { params })
//成交滚动数据
export const getRoll = params => http.get('/app-api/mini/cjgd/list', { params })
// 获取用户成交列表
export const getSuccess = params => http.get('/app-api/mini/cjyh/list', { params })
//业务员推荐列表
export const getSalesman = params => http.get('/app-api/mini/agent/list', { params })
//首页资讯列表
export const getNews = params => http.get('/app-api/mini/news/list', { params })

//获取文案配置
export const getFontByKey = key => http.get('/app-api/mini/products/getFontByKey', { params: { key } })

//业务员端
//当月已成交订单
export const getSuccessOrder = params => http.get('/app-api/mini/getMonthCjNumber', { params })
//当月已成交金额
export const getSuccessMoney = params => http.get('/app-api/mini/getMonthCjMoney', { params })
//总代跟进客户
export const getWarrant = params => http.get('/app-api/mini/getWarrantMyFollowUpUser', { params })
//当月已跟进客户
export const getAgent = params => http.get('/app-api/mini/getMyMonthFollowUpUser', { params })

//获取消息
export const message = params => http.get('/app-api/message/list', { params })
//获取未读消息
export const messageNoReadNumber = params => http.get('/app-api/message/messageNoReadNumber')
//标记已读消息
export const messageRead = params => http.post('/app-api/message/messageRead?mid='+params)

//资讯详情
export const newsDetail = params => http.get('/app-api/mini/news/info', { params })

//用户协议、隐私政策
export const miniDetail = params => http.get('/app-api/notice/get', { params })

//业务员详情
export const salemanRecommend = params => http.get('/app-api/mini/salesman/getSalesmanInfos', { params })

//房源信息列表 

export const housingresource = params => http.get('/app-api/hutai/housing-resource/list', { params })

//房源信息列表 

export const housingresourcepage = params => http.get('/app-api/hutai/housing-resource/page', { params })


//房源信息详情

export const housinginfo = params => http.get('/app-api/hutai/housing-resource/get', { params })


//关联推荐人-校验
export const bindingCheckUser = params => http.get('/app-api/wechat/check?code='+params, {  })

//关联操作
export const bindingUser = params => http.post('/app-api/wechat/affirm?code='+params, {  })
